package org.dairy.farms.model;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;

/**
 * Created by IntelliJ IDEA.
 * User: GDuggira
 * Date: 27 Jun, 2012
 * Time: 7:05:31 PM
 */
@Entity
@PrimaryKeyJoinColumn(name="ID")
public class LactationNotes extends Notes{

    @ManyToOne(optional = false)
    private Lactation lactation;

    public Lactation getLactation() {
        return lactation;
    }

    public void setLactation(Lactation lactation) {
        this.lactation = lactation;
    }
}
